﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="myschool.aspx.cs" Inherits="myschool" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1">
    <title>无标题页</title>
    <link href="../style.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        function openurl(id) {
            window.open('../mystudy/kecheng_play_temp.aspx?rid=' + id, 'kecheng_play', 'width=' + screen.width + ',height=' + screen.height + ',top=0,left=0,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,location=yes,status=yes');
           
        }
    </script>

</head>
<body onload="parent.document.getElementById('main').height = document.body.scrollHeight > 580 ?document.body.scrollHeight+10:580;">
    <form id="form1" runat="server">
    
    <div class="header_back" style="height:77px;">
    <table style="width: 796px" class="font33" border="0px">    
        <tr>
            <td >
                <table style="width: 678px; margin-top: 3px;">
                    <tr>
                        <td style="width: 20px">
                        </td>
                        <td style="width: 100px" class="btn_back">
                            <span class="font3"><span class="style20">
                                <asp:LinkButton ID="LB1" runat="server" CssClass="font33" OnClick="LB1_Click">正在录制的课程</asp:LinkButton></span></span>
                        </td>
                        <td style="width: 22px">
                        </td>
                        <td style="width: 100px" class="btn_back">
                            <span class="font3"><span class="style20">
                                <asp:LinkButton ID="LB2" runat="server" CssClass="font33" OnClick="LB1_Click">正在审核的课程</asp:LinkButton></span></span>
                        </td>
                        <td style="width: 22px">
                        </td>
                        <td style="width: 100px" class="btn_back">
                            <span class="font3"><span class="style20">
                                <asp:LinkButton ID="LB3" runat="server" CssClass="font33" OnClick="LB1_Click">正在终审的课程</asp:LinkButton></span></span>
                        </td>
                        <td style="width: 22px">
                        </td>
                        <td style="width: 100px" class="btn_back">
                            <span class="font3"><span class="style20">
                                <asp:LinkButton ID="LB4" runat="server" CssClass="font33" OnClick="LB1_Click">通过审核的课程</asp:LinkButton></span></span>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            课程名称：<asp:TextBox ID="KeChengMingCheng" runat="server"></asp:TextBox>&nbsp;&nbsp;授课老师：<asp:TextBox
                                ID="ShouKeLaoShi" runat="server"></asp:TextBox>
                            <asp:Button ID="Button1" runat="server" Text="搜索" OnClick="Button1_Click" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        </table>
        </div>
    
    
    <table style="margin-top:0px;" class="font33">    
        <tr>
            <td style="width: 272px; height: 154px; vertical-align: top;" class="table_con">
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" Width="820px"
                    DataKeyNames="id" OnRowDataBound="GridView1_RowDataBound" CellPadding="0" ForeColor="Black"
                    GridLines="Vertical" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="0px"
                    CssClass="font33">
                    <Columns>
                        <asp:BoundField HeaderText="编号" />
                        <asp:BoundField DataField="id" HeaderText="id" ReadOnly="True" SortExpression="id"
                            Visible="false" />
                        <asp:TemplateField HeaderText="课程名称">
                     
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" CommandArgument='<%#Eval("id")%>' runat="server"
                                    Text='<%# Eval("name", "{0}") %>' Width="360px" Font-Underline="False" ForeColor="Black"
                                    OnClientClick="openurl()"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="username1" HeaderText="授课老师" ReadOnly="True" />
                    </Columns>
                    <FooterStyle BackColor="#CCCC99" />
                    <HeaderStyle BackColor="#D9EDB2" Font-Bold="True" ForeColor="Black" Font-Underline="False" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td style=" height: 20px;" class="webdeyer">
                <webdiyer:AspNetPager ID="Pager" runat="server" CurrentPageButtonClass="" FirstPageText="首页"
                    LastPageText="尾页" NextPageText="下一页" PageSize="17" PrevPageText="上一页" LayoutType="Div"
                    InvalidPageIndexErrorMessage="抱歉,页码超出范围" CustomInfoHTML="页次:%CurrentPageIndex%/%PageCount% 共%RecordCount%条"
                    PageIndexOutOfRangeErrorMessage="抱歉,页码超出范围" ShowCustomInfoSection="Left" ShowPageIndexBox="Always"
                    TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到第" AlwaysShow="true" HorizontalAlign="Right"
                    Direction="LeftToRight" CustomInfoTextAlign="left" ShowPageIndex="False" OnPageChanging="pager_PageChanging"
                    ShowMoreButtons="False" Width="820px" ShowNavigationToolTip="True" CustomInfoClass="PagerClassCss"
                    SubmitButtonClass="page_go" PageIndexBoxClass="txt_class" CssClass="page_a">
                </webdiyer:AspNetPager>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
